<template>
	<view class="continer">
		<view class="bg"></view>
		<listOrders></listOrders>
		<view class="paygroup">
			<view class="payStyle">
				合计:1.6
			</view>
			<view class="payOrders">
				<button type="primary"@click="submitForm()">确认打印</button>
			</view>
		</view>
	</view>
</template>

<script>
	import {getToken} from "../../apis/myCookie.js"	
	import listOrders from './components/listOrders.vue'
	import {addOrders} from "../../apis/orders.js"
	
	
	export default{
		components:{
			listOrders,
		},
		data(){
			return{
				
			}
		},
		methods:{
			submitForm() {
				getApp().globalData.myOrder.orderStatus = 'wait';
				console.log(getApp().globalData.myOrder);
				addOrders(getApp().globalData.myOrder).then(res => {
					console.log(res);
				});
				console.log(getApp().globalData.myOrder);
				// getApp().globalData.myOrder.requireList.push({
				// 		fileId: data.fileName,
				// 		paperColor: 0,
				// 		paperNum: 1,
				// 		paperType: 0,
				// 		rangeEnd: 1,
				// 		rangeStart: 1,
				// 		side: 0,
				// 		id: '',
				// 		orderId: ''
				// 	}
				// );
			},
		}
	}
</script>

<style>
	.continer{
		padding: 0%;
		/* display: flex;
		justify-content: flex-end;
		flex-direction: column; */
	}
	.paygroup{
		display: flex;
		justify-content: space-between;
		flex-direction: row;
		margin-top: 700rpx;
		background-color: #FFFFFF;
	}
	.payStyle{
		display: flex;
		justify-content: center;
		/* flex-direction: center; */
		align-items: center;
		margin-left: 100rpx;
		/* border: 1rpx solid #000000; */
	}
	.payOrders{
		width: 330rpx;
	}
	.bg {
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		z-index: -1;
		background-color: #f8f8f8;
	}
</style>
